package com.ruoyi.process.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售记录对象 process_sellrecord
 * 
 * @author chao
 * @date 2024-07-26
 */
public class ProcessSellrecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销售记录ID */
    private Long id;

    /** 订单批号 */
    @Excel(name = "订单批号")
    private String code;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String clientName;

    /** 客户电话 */
    @Excel(name = "客户电话")
    private String clientPhone;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 规格/型号 */
    @Excel(name = "规格/型号")
    private String productModel;

    /** 数量 */
    @Excel(name = "数量")
    private Double num;

    /** 单位 */
    @Excel(name = "单位")
    private String unitName;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal signalPrice;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal totalPrice;

    /** 是否付款 */
    @Excel(name = "是否付款")
    private String pay;

    /** 备注 */
    @Excel(name = "备注")
    private String common;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createtime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setClientName(String clientName) 
    {
        this.clientName = clientName;
    }

    public String getClientName() 
    {
        return clientName;
    }

    public void setClientPhone(String clientPhone) 
    {
        this.clientPhone = clientPhone;
    }

    public String getClientPhone() 
    {
        return clientPhone;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setProductModel(String productModel) 
    {
        this.productModel = productModel;
    }

    public String getProductModel() 
    {
        return productModel;
    }

    public void setNum(Double num)
    {
        this.num = num;
    }

    public Double getNum()
    {
        return num;
    }

    public void setUnitName(String unitName) 
    {
        this.unitName = unitName;
    }

    public String getUnitName() 
    {
        return unitName;
    }

    public void setSignalPrice(BigDecimal signalPrice) 
    {
        this.signalPrice = signalPrice;
    }

    public BigDecimal getSignalPrice() 
    {
        return signalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }

    public void setPay(String pay) 
    {
        this.pay = pay;
    }

    public String getPay() 
    {
        return pay;
    }

    public void setCommon(String common) 
    {
        this.common = common;
    }

    public String getCommon() 
    {
        return common;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("clientName", getClientName())
            .append("clientPhone", getClientPhone())
            .append("productName", getProductName())
            .append("productModel", getProductModel())
            .append("num", getNum())
            .append("unitName", getUnitName())
            .append("signalPrice", getSignalPrice())
            .append("totalPrice", getTotalPrice())
            .append("pay", getPay())
            .append("common", getCommon())
                .append("createtime",getCreatetime())
            .toString();
    }
}
